package com.hxzy.shop.commodity.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhy
 * @Date 2021/07/08 10:16
 * @version 1.0
 */
@Data
public class AddDrugReq implements Serializable {
    private static final long serialVersionUID = -8026430675473101151L;

    @ApiModelProperty("id")
    private Long drugId;

    @ApiModelProperty("药品编号")
    private String drugCode;

    @ApiModelProperty("条形码")
    private String barCode;

    @ApiModelProperty("药品名称")
    @NotBlank(message = "药品名称不能为空")
    private String drugName;

    @ApiModelProperty("规格")
    @NotBlank(message = "规格不能为空")
    private String specifications;

    @ApiModelProperty("单位")
    @NotBlank(message = "药品单位不能为空")
    private String unit;

    @ApiModelProperty("剂型")
    @NotBlank(message = "药品剂型不能为空")
    private String dosageForm;

    @ApiModelProperty("生产厂家")
    @NotBlank(message = "药品生产厂家不能为空")
    private String manufacturer;

    @ApiModelProperty("批准文号")
    @NotBlank(message = "药品批准文号不能为空")
    private String approvalNumber;

    @ApiModelProperty("是否是处方药")
    private Boolean prescriptionDrug;

    @ApiModelProperty("一级分类id")
    private Long stairClassifiedId;

    @ApiModelProperty("二级分类id")
    private Long secondLevelClassifiedId;

    @ApiModelProperty(value = "上架状态 true上架 false 下架")
    private Boolean state;

    @ApiModelProperty("成本价")
    private BigDecimal costPrice;

    @ApiModelProperty("统一售价")
    private BigDecimal uniformRetailPrice;

    @ApiModelProperty("列表图")
    private String tabularChart;

    @ApiModelProperty("轮播图")
    private List<String> drugCarouselMap;

    @ApiModelProperty("详细图")
    private List<String> detailedImage;


    @ApiModelProperty(value = "库存预警")
    private Integer inventoryWarning;
    /**
     * 药品通用名称
     * */
    @ApiModelProperty("药品通用名称")
    private String drugGenericNames;
}